package manager

import (
	"gitcode.com/G-YT/iHealth25/server/api/v1"
	"gitcode.com/G-YT/iHealth25/server/middleware"
	"github.com/gin-gonic/gin"
)

type FdHealthManagerRouter struct {
}

// InitFdHealthManagerRouter 初始化 fdHealthManager表 路由信息
func (s *FdHealthManagerRouter) InitFdHealthManagerRouter(Router *gin.RouterGroup, PubRouter *gin.RouterGroup) {
	fdHealthManagerRouter := Router.Group("fdHealthManager").Use(middleware.OperationRecord())
	fdHealthManagerRouterWithoutRecord := Router.Group("fdHealthManager")
	stewardRouter := Router.Group("steward")
	fdHealthManagerRouterPub := PubRouter.Group("healthManager")
	var fdHealthManagerApi = v1.ApiGroupApp.ManagerApiGroup.FdHealthManagerApi
	{
		fdHealthManagerRouterPub.POST("register", fdHealthManagerApi.Register)                                  // 注册
		fdHealthManagerRouterPub.POST("login", fdHealthManagerApi.Login)                                        // 登陆
		fdHealthManagerRouterPub.GET("getServiceCenterList", fdHealthManagerApi.GetServiceCenterList)           // 获取服务中心列表(注册用)
		fdHealthManagerRouterPub.GET("getHealthManageCenterList", fdHealthManagerApi.GetHealthManageCenterList) // 获取健管中心列表(注册用)
		fdHealthManagerRouterPub.GET("findHealthManagerByWhere", fdHealthManagerApi.FindHealthManagerByWhere)   // 根据条件获取健管师信息(用户绑定健管师用)
		fdHealthManagerRouterPub.POST("forgetPassword", fdHealthManagerApi.ForgetPassword)                      // 忘记密码
		fdHealthManagerRouterPub.GET("getHealthManagersByHmIDs", fdHealthManagerApi.GetHealthManagersByHmIDs)   // 根据ID集合获取健管师列表【超管】
	}
	{
		fdHealthManagerRouter.DELETE("deleteFdHealthManager", fdHealthManagerApi.DeleteFdHealthManager)           // 删除fdHealthManager表
		fdHealthManagerRouter.DELETE("deleteFdHealthManagerByIds", fdHealthManagerApi.DeleteFdHealthManagerByIds) // 批量删除fdHealthManager表
		fdHealthManagerRouter.PUT("updateFdHealthManager", fdHealthManagerApi.UpdateFdHealthManager)              // 更新fdHealthManager表
		fdHealthManagerRouter.GET("openVip", fdHealthManagerApi.OpenVip)                                          // 开通会员
	}
	{
		fdHealthManagerRouterWithoutRecord.PUT("updatePassword", fdHealthManagerApi.UpdatePassword)                     // 修改密码
		fdHealthManagerRouterWithoutRecord.GET("findFdHealthManager", fdHealthManagerApi.FindFdHealthManager)           // 根据ID获取fdHealthManager表
		fdHealthManagerRouterWithoutRecord.GET("getFdHealthManagerList", fdHealthManagerApi.GetSsHealthManagerList)     // 获取健管师列表【服务站】
		fdHealthManagerRouterWithoutRecord.GET("getScHealthManagerList", fdHealthManagerApi.GetScHealthManagerList)     // 获取健管师列表【服务中心】
		fdHealthManagerRouterWithoutRecord.GET("getAllHealthManagerList", fdHealthManagerApi.GetAllHealthManagerList)   // 获取全部健管师列表【超管】
		fdHealthManagerRouterWithoutRecord.GET("getHealthManagerRank", fdHealthManagerApi.GetHealthManagerRank)         // 获取健管师排名【超管】
		fdHealthManagerRouterWithoutRecord.GET("getScHealthManagerRank", fdHealthManagerApi.GetScHealthManagerRank)     // 获取健管师排名【服务中心】
		fdHealthManagerRouterWithoutRecord.GET("exportExcel", fdHealthManagerApi.ExportExcel)                           // 导出健管师Excel【超管】
		fdHealthManagerRouterWithoutRecord.GET("exportScExcel", fdHealthManagerApi.ExportScExcel)                       // 导出健管师Excel【服务中心】
		fdHealthManagerRouterWithoutRecord.GET("getPromotionUserList", fdHealthManagerApi.GetPromotionUserList)         // 获取推广用户列表【健管师】
		fdHealthManagerRouterWithoutRecord.GET("getHealthManagerInfo", fdHealthManagerApi.GetHealthManagerInfo)         // 获取健管师个人信息【健管师】
		fdHealthManagerRouterWithoutRecord.PUT("updateHealthManagerInfo", fdHealthManagerApi.UpdateHealthManagerInfo)   // 编辑健管师个人信息【健管师】
		fdHealthManagerRouterWithoutRecord.GET("applyAttestation", fdHealthManagerApi.ApplyAttestation)                 // 申请认证【健管师】
		fdHealthManagerRouterWithoutRecord.GET("getAttestationFailReason", fdHealthManagerApi.GetAttestationFailReason) // 认证失败原因【健管师】
	}
	{
		stewardRouter.GET("getStewardListByPage", fdHealthManagerApi.GetManagerListByPage) // 分页获取健管师列表【C端用户】
	}
}
